package com.nchu.react.webflux.component;

import com.nchu.react.webflux.service.StudentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

/**
 * @author fujianjian
 * @project react-learning
 * @date 2018/9/28 上午12:15
 */
@Slf4j
@Component
public class StudentHandler {

    @Autowired
    private StudentService studentService;

    public Mono<ServerResponse> createStudent(ServerRequest request) {
//        request.bodyToMono(Student.class);
        return null;

    }

}
